<?php

use yii\db\Migration;

class m170425_100236_add_column extends Migration
{
    public function up()
    {
        //给商品分类添加分类图片字段
        $this->addColumn('goods_category','cate_img',$this->string()->defaultValue('0.jpg')->comment('商品分类图片'));
    }

    public function down()
    {
        echo "m170425_100236_add_column cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
